<div id="content">
<div style="display:none;"><?php if(!get_option('ini_bulletin') && get_option('ini_admin')){} else {include('includes/map.php');};?></div>
<div class="main-media">
<?php if(have_posts()):while (have_posts()):the_post();?>
<article>
<div <?php post_class('postlist');?> id="post-<?php the_ID();?>">
<div class="postlist-content">
<h2 class="title entry-title">
<?php if(is_sticky()) echo '<span style="color:red;"><strong>推荐&nbsp;</strong></span>';?>
<a href="<?php the_permalink()?>" title="<?php the_title();?>" rel="bookmark"><?php the_title();?></a>
</h2>

<div class="postlist-info">
<span class="vcard author"">
<?php $custom_fields=get_post_custom_keys($post_id); if (!in_array('copyright',$custom_fields)){?>
<a class="fn" href="<?php echo get_author_posts_url($authordata->ID);?>"><?php the_author('nickname');?> </a>
<?php } else { $custom = get_post_custom($post_id);$custom_url=$custom['copyrighturl'] ;$custom_value = $custom['copyright'];?>
<a class="fn" rel="external nofollow" href="<?php echo $custom_url[0]?>" ><?php echo $custom_value[0]?> </a>
<?php }?>
</span>
/
<?php if ((get_the_modified_time('Y')*365+get_the_modified_time('z')) > (get_the_time('Y')*365+get_the_time('z'))){?>
<span class="date updated">
<time datetime="<?php the_modified_time('Y-m-d')?>" style="display:none"><?php the_modified_time('Y-m-d H:i')?> </time>
</span>
<span>
<?php } else {?><span class="date updated"><?php }?>
<time datetime="<?php the_time('Y-m-d')?>"><a href="<?php $year=get_the_time('Y');$month=get_the_time('m');$day=get_the_time('d');echo get_day_link($year,$month,$day);?>" title="查看<?php the_time('Y年n月j日')?>发布的文章"> <?php the_time('Y-m-d')?> </a></time>
</span>
/<span><a href="<?php the_permalink()?>" title="继续加热"> <?php get_post_views($post->ID)?> ℃ </a></span>
<?php edit_post_link('编辑文章',' &bull; ','');?>
</div>
<div class="clear"></div>

<div class="entry-post">
<?php $music=get_post_meta($post->ID,'music_value',true);$video=get_post_meta($post->ID,'video_value',true);
if(in_array('music_value',$custom_fields) || in_array('video_value',$custom_fields)):
if(in_array('music_value',$custom_fields)): if (has_post_thumbnail()): echo '<div class="thumbnail_box"><div class="thumbnail"><a href="'.get_permalink().'" title="'.get_the_title().'">'; the_post_thumbnail('full',array('alt' => trim(strip_tags($post->post_title )) )); echo '</a></div></div>'; endif; echo '<audio controls style="width:100%;margin-top:8px"><source src="'.$music.'" type="audio/mpeg"><embed src='.get_bloginfo('template_url').'/includes/mplayer.swf quality="high" width="100%" height="24" wmode="transparent" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" flashvars="bg=0xD4E8FF&leftbg=0x0DA4D3&lefticon=0xF2F2F2&rightbg=0x0DA4D3&rightbghover=0x3AB8DF&righticon=0xF2F2F2&righticonhover=0xFFFFFF&text=0x0088DD&slider=0x0088DD&track=0xFFFFFF&border=0xFFFFFF&loader=0x8EC2F4&autostart=no&loop=yes&soundFile='.$music.'"></audio>'; endif;
if (in_array('video_value',$custom_fields)): if(ereg('m3u8',$video)): echo '<span style="color:red;font-weight:800;">该视频格式仅支持苹果系统！</span>'; endif; echo '<video controls src="'.$video.'" style="width:100%;margin-top:8px">抱歉！您的浏览器不支持HTML5！<br>Sorry ! HTML5 Video is required !</video>'; endif; else:?>
<?php echo get_img(430,230,1); endif;?>
<span><?php echo mb_strimwidth(strip_tags(apply_filters('the_content', $post->post_content)),0,320,"...");?></span>
<div class="tags"><?php getColorTags();?></div>
</div>
</div>
</div>
</article>
<?php endwhile; endif;?>
</div>
</div>
<div style="margin-bottom:10px;"><?php pagination($query_string);?></div>
</div>
<div class="clear"></div>